SMAHB05100_[자동판정]판정리스트.xrw 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 :
  4. * 설 명 : 조회 조건에 상태 구분이 있는데 nu에 검사중, 결과 및 기타 컬럼이 없어서 hist라는 테이블을 만들어서 join함.
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 :
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>[자동판정]판정리스트</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <judgpatlst>
  20. <item>
  21. <sel/>
  22. <statflag/>
  23. <hopedd/>
  24. <hngnm/>
  25. <pid/>
  26. <sex/>
  27. <age/>
  28. <pkgnm/>
  29. <addtestnm/>
  30. <cmpynm/>
  31. <ajcreatdd/>
  32. <ajcreatidnm/>
  33. <judgdrid/>
  34. <judgdd/>
  35. <judgwaittermdd/>
  36. <rsltcnstdrid/>
  37. <rsltcnstrsrvdd/>
  38. <rsltcnstflag/>
  39. <diagnm/>
  40. <sickcd/>
  41. <cnstcnts/>
  42. <prnttims/>
  43. <prntrid/>
  44. <userid/>
  45. <rsrvdd/>
  46. <rsrvno/>
  47. <instcd/>
  48. <inqrrptidnm/>
  49. <inqrrptid/>
  50. <no/>
  51. <orddd/>
  52. <pkgcd/>
  53. <cretno/>
  54. </item>
  55. </judgpatlst>
  56. <tmp>
  57. <sel/>
  58. </tmp>
  59. </main>
  60. <send_05100>
  61. <srchdrid/>
  62. <srchfromdd/>
  63. <srchtodd/>
  64. <srchhealexamflag/>
  65. <srchhealexamdetlflag/>
  66. <srchrtimeyn/>
  67. <srchrsltendyn/>
  68. <srchjudgstatflag/>
  69. <srchrsltcnststatflag/>
  70. <srchstatflag/>
  71. <srchcmpyyn/>
  72. <srchinstcd/>
  73. <reqdata>
  74. <judgpatlst/>
  75. </reqdata>
  76. <srchpid/>
  77. <srchhngnm/>
  78. <srchscreen/>
  79. <srchpid/>
  80. <srchhealexamplacecd/>
  81. <dataconfirm/>
  82. </send_05100>
  83. <init>
  84. <baseinfo>
  85. <statlst/>
  86. <hedetlflaglst/>
  87. <drlst>
  88. <itemdr/>
  89. </drlst>
  90. <rsltcnstflaglst/>
  91. <healexamplacelst/>
  92. </baseinfo>
  93. <A0010list>
  94. <A0010>
  95. <cdnm/>
  96. <cdid/>
  97. </A0010>
  98. </A0010list>
  99. </init>
  100. <datachk>
  101. <datalist/>
  102. </datachk>
  103. </root>
  104. </instance>
  105. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  109. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  110. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  111. <script type="javascript" src="../../../ast/healexamautojudgweb/js/AJDG001.js"/>
  112. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  113. <script type="javascript" ev:event="xforms-ready">
  114. <![CDATA[
  115. fDefaultSubmit();
  116. fDefaultSet(); //기본 데이터를 셋팅한다.
  117. // fDefaultSubmit2();
  118. ]]>
  119. </script>
  120. <submission id="TRZBC00101"/>
  121. <submission id="TRAHB01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_05100" replace="instance" resultref="/root/init/baseinfo/drlst"/>
  122. <submission id="TRAHB05101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_05100" resultref="/root/main/judgpatlst"/>
  123. <submission id="TXAHB05102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_05100/reqdata/judgpatlst" resultref="/root/main/judgpatlst/item"/>
  124. <submission id="TRAHB05103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/datachk/datalist" resultref="/root/datachk/datalist"/>
  125. <submission id="TRAHA00001"/>
  126. </model>
  127. <script type="javascript">
  128. <![CDATA[
  129. function fDefaultSubmit() {
  130. model.makeValue("/root/send_05100/srchhealexamflag" , 'C');
  131. model.makeValue("/root/send_05100/srchcond", "J");
  132. submit("TRAHB01504");
  133. addComboItem( "cmb_drid" , "전체", "");
  134. zbcfGetCodeList( new Array("A0069","A0107", "A0123")
  135. , new Array( "/root/init/baseinfo/hedetlflaglst" //건진구분
  136. , "/root/init/baseinfo/statlst" //상태
  137. , "/root/init/baseinfo/rsltcnstflaglst" )//상담방법
  138. );
  139. submit("TRZBC00101");
  140. healGetCodeList( new Array("S600","S600")
  141. , new Array("/root/init/baseinfo/healexamplacelst"
  142. ,"/root/init/baseinfo/healexamplacecd") );
  143. addComboItem( "cmb_srchhealexamdetlflag" , "개인+기업", "C01 C03");
  144. }
  145. function fDefaultSet() {
  146. //유저에 따라 판정의셋팅
  147. var sUserInfosS = getUserInfos();
  148. sUserInfosS = sUserInfosS + "|";
  149. var UserInfosS_Array = sUserInfosS.split("|");
  150. var cnt_userid = UserInfosS_Array[0]; //사용자번호
  151. var drnm = model.getValue("/root/init/baseinfo/drlst/itemdr[drid = '" + cnt_userid +"']/drnm");
  152. if(drnm != ""){
  153. // 의사이면 한달
  154. model.setValue("/root/send_05100/srchdrid",cnt_userid); //의사 아이디 셋팅
  155. model.setValue("/root/send_05100/srchfromdd",(getCurrentDate().toDate().getAddDate(-1, 'M')).getDateFormat("YYYYMMDD")); //한달전으로 셋팅
  156. model.setValue("/root/send_05100/srchtodd",getCurrentDate()); //금일로 셋팅
  157. //건진조회기본값 셋팅
  158. model.setValue("/root/send_05100/srchrtimeyn",'Y'); //검사중
  159. model.setValue("/root/send_05100/srchrsltendyn",'Y'); //결과입력중
  160. model.setValue("/root/send_05100/srchstatflag",'H'); //판정대기
  161. }else{
  162. // 의사가 아니면 한달
  163. model.setValue("/root/send_05100/srchfromdd",getCurrentDate()); //금일로 셋팅
  164. model.setValue("/root/send_05100/srchtodd",getCurrentDate()); //금일로 셋팅
  165. model.setValue("/root/send_05100/srchdrid",""); //의사 아이디 셋팅 료
  166. //건진조회기본값 셋팅
  167. model.setValue("/root/send_05100/srchrtimeyn",'Y'); //검사중
  168. model.setValue("/root/send_05100/srchrsltendyn",'Y'); //결과
  169. model.setValue("/root/send_05100/srchstatflag",'H'); //판정대기
  170. model.setValue("/root/send_05100/srchjudgstatflag",'N Y'); //판정중, 판정완료
  171. }
  172. //건진종류셋팅
  173. model.setValue("/root/send_05100/srchinstcd",UserInfosS_Array[6]);
  174. model.setValue("/root/send_05100/srchhealexamflag",'C');
  175. model.setValue("/root/send_05100/srchhealexamdetlflag",'C01 C03');
  176. fGetJudgPatList();
  177. model.refresh();
  178. }
  179. function fGetJudgPatList(){
  180. submit("TRAHB05101",false);
  181. }
  182. ]]>
  183. </script>
  184. </xhtml:head>
  185. <xhtml:body guideline="2,759;1,1188;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  186. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  187. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:230px; height:13px; ">[자동판정]판정 리스트</caption>
  188. </group>
  189. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  190. <group id="group4" style="left:0px; top:5px; width:1179px; height:90px; vertical-align:top; ">
  191. <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
  192. <caption id="caption10" class="search_name" style="left:215px; top:10px; width:86px; height:17px; ">건진일자 :</caption>
  193. <caption id="caption34" class="search_name" style="left:11px; top:10px; width:89px; height:17px; ">건진종류 :</caption>
  194. <button id="btn_search" class="btn1_letter2" style="left:1113px; top:9px; width:56px; height:22px; ">
  195. <caption>조회</caption>
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. fGetJudgPatList();
  199. grd_judgpatlst.clearStatus();
  200. model.refresh();
  201. ]]>
  202. </script>
  203. </button>
  204. <line id="line1" style="x1:1101px; y1:10px; x2:1101px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  205. <select1 id="cmb_srchhealexamdetlflag" ref="/root/send_05100/srchhealexamdetlflag" class="combo_s_essential" appearance="minimal" style="left:101px; top:10px; width:105px; height:19px; ">
  206. <choices>
  207. <itemset nodeset="/root/init/baseinfo/hedetlflaglst/A0069">
  208. <label ref="cdnm"/>
  209. <value ref="cdid"/>
  210. </itemset>
  211. </choices>
  212. </select1>
  213. <input id="ipt_srchfromdd" ref="/root/send_05100/srchfromdd" class="input_s_essential" inputtype="date" style="left:304px; top:10px; width:96px; height:19px; "/>
  214. <input id="ipt_srchtodd" ref="/root/send_05100/srchtodd" class="input_s_essential" inputtype="date" style="left:424px; top:10px; width:96px; height:19px; ">
  215. <script type="javascript" ev:event="xforms-value-changed">
  216. <![CDATA[
  217. fGetJudgPatList();
  218. ]]>
  219. </script>
  220. </input>
  221. <input id="ipt_pnm" ref="/root/send_05100/srchhngnm" class="input_default" visibility="hidden" style="left:860px; top:10px; width:69px; height:19px; "/>
  222. <input id="ipt_pid" ref="/root/send_05100/srchpid" class="input_default" style="left:755px; top:10px; width:80px; height:19px; ">
  223. <script type="javascript" ev:event="onkeyup">
  224. <![CDATA[
  225. if(event.keyCode == '13'){
  226. model.setValue("/root/send_05100/srchpid",ipt_pid.currentText);
  227. btn_search.dispatch("DOMActivate");
  228. }
  229. ]]>
  230. </script>
  231. </input>
  232. <caption id="caption36" class="search_name" style="left:665px; top:10px; width:89px; height:17px; ">등록번호 :</caption>
  233. <caption id="caption37" class="search_no_b" style="left:404px; top:11px; width:12px; height:17px; ">~</caption>
  234. <button id="btn_srchpat" class="icon_search" visibility="hidden" style="left:840px; top:10px; width:16px; height:16px; ">
  235. <caption/>
  236. <script type="javascript" ev:event="DOMActivate">
  237. <![CDATA[
  238. fSearchPatInfo("SMAHA00100", "pid", ipt_pid.currentText , "N", "/root/send_05100/" ,ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
  239. if( model.getValue(ipt_pid.attribute("ref")) != "" ) fGetJudgPatList();
  240. ]]>
  241. </script>
  242. </button>
  243. <caption id="caption38" class="search_name" style="left:665px; top:63px; width:89px; height:17px; ">판정의 :</caption>
  244. <select1 id="cmb_drid" ref="/root/send_05100/srchdrid" class="combo_s_essential" appearance="minimal" style="left:755px; top:63px; width:105px; height:19px; ">
  245. <choices>
  246. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  247. <label ref="drnm"/>
  248. <value ref="drid"/>
  249. </itemset>
  250. </choices>
  251. <script type="javascript" ev:event="xforms-value-changed">
  252. <![CDATA[
  253. fGetJudgPatList();
  254. ]]>
  255. </script>
  256. </select1>
  257. <caption id="caption1" class="search_name" style="left:10px; top:35px; width:97px; height:17px; ">상태구분 :</caption>
  258. <caption id="caption2" class="search_name" style="left:665px; top:37px; width:89px; height:17px; ">개인/단체:</caption>
  259. <select1 id="cmb_srchcmpyflag" ref="/root/send_05100/srchcmpyyn" class="combo_s_essential" appearance="minimal" style="left:755px; top:37px; width:50px; height:19px; ">
  260. <choices>
  261. <item>
  262. <label>전체</label>
  263. <value/>
  264. </item>
  265. <item>
  266. <label>개인</label>
  267. <value>N</value>
  268. </item>
  269. <item>
  270. <label>단체</label>
  271. <value>Y</value>
  272. </item>
  273. </choices>
  274. <script type="javascript" ev:event="xforms-value-changed">
  275. <![CDATA[
  276. fGetJudgPatList();
  277. model.refresh();
  278. ]]>
  279. </script>
  280. </select1>
  281. <select id="checkbox2" ref="/root/send_05100/srchrsltendyn" overflow="visible" appearance="full" style="left:165px; top:60px; width:50px; height:20px; border-style:none; ">
  282. <choices>
  283. <item>
  284. <label>결과</label>
  285. <value>Y</value>
  286. </item>
  287. </choices>
  288. </select>
  289. <select id="checkbox3" ref="/root/send_05100/srchjudgstatflag" overflow="visible" appearance="full" style="left:300px; top:60px; width:60px; height:20px; border-style:none; ">
  290. <choices>
  291. <item>
  292. <label>판정중</label>
  293. <value>N</value>
  294. </item>
  295. </choices>
  296. </select>
  297. <select id="checkbox4" ref="/root/send_05100/srchrsltcnststatflag" overflow="visible" appearance="full" style="left:560px; top:60px; width:90px; height:20px; border-style:none; ">
  298. <choices>
  299. <item>
  300. <label>결과상담완료</label>
  301. <value>Y</value>
  302. </item>
  303. </choices>
  304. </select>
  305. <select id="checkbox5" ref="/root/send_05100/srchjudgstatflag" overflow="visible" appearance="full" style="left:455px; top:60px; width:100px; height:20px; border-style:none; ">
  306. <choices>
  307. <item>
  308. <label>판정완료(수정)</label>
  309. <value>S</value>
  310. </item>
  311. </choices>
  312. </select>
  313. <select id="checkbox6" ref="/root/send_05100/srchrtimeyn" overflow="visible" appearance="full" style="left:100px; top:60px; width:60px; height:20px; border-style:none; ">
  314. <choices>
  315. <item>
  316. <label>검사중</label>
  317. <value>Y</value>
  318. </item>
  319. </choices>
  320. </select>
  321. <select id="checkbox7" ref="/root/send_05100/srchstatflag" overflow="visible" appearance="full" style="left:100px; top:35px; width:55px; height:20px; border-style:none; ">
  322. <choices>
  323. <item>
  324. <label>가예약</label>
  325. <value>A</value>
  326. </item>
  327. </choices>
  328. </select>
  329. <select id="checkbox8" ref="/root/send_05100/srchstatflag" overflow="visible" appearance="full" style="left:165px; top:35px; width:65px; height:20px; border-style:none; ">
  330. <choices>
  331. <item>
  332. <label>예약보류</label>
  333. <value>B</value>
  334. </item>
  335. </choices>
  336. </select>
  337. <select id="checkbox9" ref="/root/send_05100/srchstatflag" overflow="visible" appearance="full" style="left:235px; top:35px; width:60px; height:20px; border-style:none; ">
  338. <choices>
  339. <item>
  340. <label>예약</label>
  341. <value>C</value>
  342. </item>
  343. </choices>
  344. </select>
  345. <select id="checkbox10" ref="/root/send_05100/srchstatflag" overflow="visible" appearance="full" style="left:300px; top:35px; width:80px; height:20px; border-style:none; ">
  346. <choices>
  347. <item>
  348. <label>예약취소</label>
  349. <value>D</value>
  350. </item>
  351. </choices>
  352. </select>
  353. <select id="checkbox11" ref="/root/send_05100/srchstatflag" overflow="visible" appearance="full" style="left:235px; top:60px; width:75px; height:20px; border-style:none; ">
  354. <choices>
  355. <item>
  356. <label>판정대기</label>
  357. <value>H</value>
  358. </item>
  359. </choices>
  360. </select>
  361. <select id="checkbox12" ref="/root/send_05100/srchstatflag" overflow="visible" appearance="full" style="left:380px; top:35px; width:55px; height:20px; border-style:none; ">
  362. <choices>
  363. <item>
  364. <label>접수</label>
  365. <value>E</value>
  366. </item>
  367. </choices>
  368. </select>
  369. <select id="checkbox13" ref="/root/send_05100/srchstatflag" overflow="visible" appearance="full" style="left:455px; top:35px; width:85px; height:20px; border-style:none; ">
  370. <choices>
  371. <item>
  372. <label>접수취소</label>
  373. <value>F</value>
  374. </item>
  375. </choices>
  376. </select>
  377. <select id="checkbox1" ref="/root/send_05100/srchjudgstatflag" overflow="visible" appearance="full" style="left:380px; top:60px; width:70px; height:20px; border-style:none; ">
  378. <choices>
  379. <item>
  380. <label>판정완료</label>
  381. <value>Y</value>
  382. </item>
  383. </choices>
  384. </select>
  385. <select1 id="combo1" ref="/root/send_05100/srchhealexamplacecd" appearance="minimal" style="left:885px; top:37px; width:65px; height:19px; ">
  386. <choices>
  387. <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
  388. <label ref="cdnm"/>
  389. <value ref="cdid"/>
  390. </itemset>
  391. </choices>
  392. </select1>
  393. <caption id="caption3" class="search_name" style="left:815px; top:37px; width:60px; height:17px; ">장소 :</caption>
  394. <caption id="caption4" class="search_name" style="left:875px; top:63px; width:114px; height:17px; ">데이터검증 :</caption>
  395. <select1 id="combo2" ref="/root/send_05100/dataconfirm" class="combo_s_essential" appearance="minimal" style="left:975px; top:63px; width:120px; height:19px; ">
  396. <choices>
  397. <item>
  398. <label>전체</label>
  399. <value/>
  400. </item>
  401. <item>
  402. <label>데이터검진완료</label>
  403. <value>Y</value>
  404. </item>
  405. <item>
  406. <label>데이터검진오류</label>
  407. <value>N</value>
  408. </item>
  409. </choices>
  410. </select1>
  411. </group>
  412. <datagrid id="grd_judgpatlst" nodeset="/root/main/judgpatlst/item" caption="선택^상태^검진일^성명^등록번호^플래그^성별^나이^패키지명^추가검사^개인/단체^자동판정일^자동판정요청자^판정의^판정일^판정대기일^상담의^상담일시^상담방법^진단명^질환설명서 코드^추천검진^출력횟수^최종출력자^userid^rsrvdd^rsrvno^instcd^문진지종류^no^문진지코드^외래진료일" colsep="^" colwidth="71, 63, 80, 104, 85, 34, 34, 100, 100, 100, 100, 94, 81, 64, 89, 76, 79, 72, 151, 98, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:3px; top:123px; width:1175px; height:611px; ">
  413. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  414. <col disabled="true" ref="statflag" type="combo">
  415. <choices>
  416. <item>
  417. <label>가예약</label>
  418. <value>A</value>
  419. </item>
  420. <item>
  421. <label>예약보류</label>
  422. <value>B</value>
  423. </item>
  424. <item>
  425. <label>예약</label>
  426. <value>D</value>
  427. </item>
  428. <item>
  429. <label>접수</label>
  430. <value>E</value>
  431. </item>
  432. <item>
  433. <label>검사중</label>
  434. <value>J</value>
  435. </item>
  436. <item>
  437. <label>결과</label>
  438. <value>G</value>
  439. </item>
  440. <item>
  441. <label>판정대기</label>
  442. <value>H</value>
  443. </item>
  444. <item>
  445. <label>판정중</label>
  446. <value>K</value>
  447. </item>
  448. <item>
  449. <label>판정완료</label>
  450. <value>I</value>
  451. </item>
  452. <item>
  453. <label>결과상담완료</label>
  454. <value>L</value>
  455. </item>
  456. <item>
  457. <label>판정완료(수정)</label>
  458. <value>M</value>
  459. </item>
  460. </choices>
  461. </col>
  462. <col ref="hopedd" format="yyyy-mm-dd" style="text-align:center; "/>
  463. <col ref="hngnm" style="text-align:center; "/>
  464. <col ref="pid"/>
  465. <col ref="healexamflag" visibility="hidden"/>
  466. <col ref="sex" style="text-align:center; "/>
  467. <col ref="age" style="text-align:center; "/>
  468. <col ref="pkgnm"/>
  469. <col ref="addtestnm"/>
  470. <col ref="cmpynm"/>
  471. <col ref="ajcreatdd" format="yyyy-mm-dd hh:nn"/>
  472. <col ref="ajcreatidnm"/>
  473. <col disabled="false" ref="judgdrid"/>
  474. <col ref="judgdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  475. <col ref="judgwaittermdd"/>
  476. <col disabled="false" ref="rsltcnstdrid" type="combo">
  477. <choices>
  478. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  479. <label ref="drnm"/>
  480. <value ref="drid"/>
  481. </itemset>
  482. </choices>
  483. </col>
  484. <col ref="rsltcnstrsrvdd"/>
  485. <col editmode="search" ref="rsltcnstflag" type="combo">
  486. <choices>
  487. <itemset nodeset="/root/init/baseinfo/rsltcnstflaglst/A0123">
  488. <label ref="cdnm"/>
  489. <value ref="cdid"/>
  490. </itemset>
  491. </choices>
  492. </col>
  493. <col ref="diagnm"/>
  494. <col ref="sickcd"/>
  495. <col ref="cnstcnts"/>
  496. <col ref="prnttims"/>
  497. <col ref="prntrid"/>
  498. <col ref="userid" visibility="hidden"/>
  499. <col ref="rsrvdd" visibility="hidden"/>
  500. <col ref="rsrvno" visibility="hidden"/>
  501. <col ref="instcd" visibility="hidden"/>
  502. <col ref="inqrrptidnm"/>
  503. <col ref="inqrrptid" visibility="hidden"/>
  504. <col ref="no" visibility="hidden"/>
  505. <col ref="orddd" visibility="hidden"/>
  506. <col ref="cretno" visibility="hidden"/>
  507. <script type="javascript" ev:event="ondblclick">
  508. <![CDATA[
  509. var childCnt = window.children.length;
  510. for( var i = childCnt; i > 0; i-- ) {
  511. var child = window.children.item(i-1);
  512. if (window.children.item(i-1).window.type != "modal") {
  513. window.children.item(i-1).close();
  514. }
  515. }
  516. open("SMAHB05300", "2", "", "", "SMAHB05300", grd_judgpatlst.attribute("nodeset") + "[" + grd_judgpatlst.row + "]", "/root/temp" ) ;
  517. //modal("SMAHB05400", "", "", "", "popup", grd_judgpatlst.attribute("nodeset") + "[" + grd_judgpatlst.row + "]", "/root/temp" );
  518. ]]>
  519. </script>
  520. <script type="javascript" ev:event="onaftersort">
  521. <![CDATA[
  522. grd_judgpatlst.gridToInstance();
  523. ]]>
  524. </script>
  525. </datagrid>
  526. <caption id="caption5" class="tit_2" style="left:5px; top:104px; width:151px; height:13px; ">판정 리스트</caption>
  527. <line id="line6" class="line_1" style="x1:4px; y1:118px; x2:1179px; y2:118px; "/>
  528. <button id="button2" class="btn5_letter2" disabled="false" visibility="hidden" style="left:1136px; top:99px; width:42px; height:19px; ">
  529. <caption>저장</caption>
  530. <script type="javascript" ev:event="DOMActivate">
  531. <![CDATA[
  532. // grd_judgpatlst.valueMatrix(grd_judgpatlst.row, grd_judgpatlst.colRef("healexamflag")) = cmb_srchhealexamdetlflag.value;
  533. model.setValue("/root/send/judgpatlst", grd_judgpatlst.getUpdateData());
  534. submit("TXAHB05101");
  535. fGetJudgPatList();
  536. ]]>
  537. </script>
  538. </button>
  539. <button id="button3" class="btn5_letter4" disabled="false" style="left:1071px; top:99px; width:64px; height:19px; ">
  540. <caption>자동판정</caption>
  541. <script type="javascript" ev:event="DOMActivate">
  542. <![CDATA[
  543. if(messageBox("판정확정이 안된 환자는 기존 판정 데이터는 삭제 됩니다. 자동판정 하시겠습니까?", "Q999") != 6) return false;
  544. // grd_judgpatlst.valueMatrix(grd_judgpatlst.row, grd_judgpatlst.colRef("healexamflag")) = cmb_srchhealexamdetlflag.value;
  545. model.setValue("/root/send_05100/reqdata/judgpatlst", grd_judgpatlst.getUpdateData());
  546. submit("TXAHB05102");
  547. fGetJudgPatList();
  548. grd_judgpatlst.clearStatus();
  549. model.refresh();
  550. ]]>
  551. </script>
  552. </button>
  553. <button id="button1" class="btn2_letter4" disabled="false" style="left:930px; top:99px; width:64px; height:19px; ">
  554. <caption>엑셀저장</caption>
  555. <script type="javascript" ev:event="DOMActivate">
  556. <![CDATA[
  557. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  558. grd_judgpatlst.saveExcel(file);
  559. ]]>
  560. </script>
  561. </button>
  562. <button id="button5" class="btn2_letter2" disabled="false" style="left:887px; top:99px; width:42px; height:19px; ">
  563. <caption>문진</caption>
  564. <script type="javascript" ev:event="DOMActivate">
  565. <![CDATA[
  566. if(grd_judgpatlst.row > 0 ){
  567. //open("SPAHB04900", "1", "", "", "popup", grd_judgpatlst.attribute("nodeset") + "[" + grd_judgpatlst.row + "]" , "root/temp");
  568. var sValue =
  569. model.getValue("/root/main/judgpatlst/item[" + grd_judgpatlst.row + "]/instcd") + "▦" +
  570. model.getValue("/root/main/judgpatlst/item[" + grd_judgpatlst.row + "]/healexamflag") + "▦" +
  571. model.getValue("/root/main/judgpatlst/item[" + grd_judgpatlst.row + "]/healexamdetlflag") + "▦" +
  572. model.getValue("/root/main/judgpatlst/item[" + grd_judgpatlst.row + "]/hopedd") + "▦" +
  573. model.getValue("/root/main/judgpatlst/item[" + grd_judgpatlst.row + "]/rsrvdd") + "▦" +
  574. model.getValue("/root/main/judgpatlst/item[" + grd_judgpatlst.row + "]/rsrvno") + "▦" +
  575. model.getValue("/root/main/judgpatlst/item[" + grd_judgpatlst.row + "]/pid") + "▦" +
  576. model.getValue("/root/main/judgpatlst/item[" + grd_judgpatlst.row + "]/inqrrptid") + "▦" +
  577. 'Y' //저장버튼 비활성화
  578. ;
  579. setParameter("SMAHB04900_PARM",sValue);
  580. modal("SMAHB04900", "1","50", "50", "SMAHB04900", "", "", ""); //sysmenu:hidden
  581. }else{
  582. messageBox("환자를 선택하시고 문진 버튼을 누르세요","I999");
  583. }
  584. ]]>
  585. </script>
  586. </button>
  587. <button id="button6" class="btn2_letter8" disabled="false" visibility="hidden" style="left:777px; top:99px; width:108px; height:19px; ">
  588. <caption>판정지 일괄 출력</caption>
  589. <script type="javascript" ev:event="DOMActivate">
  590. <![CDATA[
  591. var nodeList = instance1.selectNodes(grd_judgpatlst.nodeset + "[sel='Y']");
  592. var rtn = messageBox("총 " + nodeList.length + "명을 선택하였습니다. 확인을 선택하시면 판정지를 연속으로 출력합니다. 판정지 미리보기를 하시려면 취소를 선택하시고 리스트를 각각 조회 하십시오. 판정지는 설정 언어로 출력됩니다.", "Q001");
  593. if(rtn == "7" ){
  594. return false;
  595. }else{
  596. for( var i = 0 ; i < nodeList.length ; i++){
  597. model.setValue("/root/send/srchhealexamflag", nodeList.item(i).healexamflag.text ); //건진구분
  598. model.setValue("/root/send/srchhealexamdetlflag", nodeList.item(i).healexamdetlflag.text ); //건진상세구분
  599. model.setValue("/root/send/srchrsrvdd", nodeList.item(i).rsrvdd.text ); //예약등록일자
  600. model.setValue("/root/send/srchrsrvno", nodeList.item(i).rsrvno.text ); //예약등록번호
  601. model.setValue("/root/send/srchpid", nodeList.item(i).pid.text ); //등록번호
  602. model.setValue("/root/send/srchorddd", nodeList.item(i).orddd.text ); //건진일자
  603. model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") ); //기관코드
  604. model.setValue("/root/send/srchlangflag", language ); //언어구분: 한글버전
  605. model.removeNodeset("/root/temp/colgprntinfo");
  606. //그리드에 뿌려주기
  607. ret = submit("TRAHR00902");
  608. if( (ret == true ) && (instance1.selectNodes("/root/temp/colgprntinfo/itemrslt") != null ) ) {
  609. //결과출력
  610. model.makeNode("/root/temp/colgprntinfo/iteminfo/pid");
  611. model.makeNode("/root/temp/colgprntinfo/iteminfo/pnm");
  612. model.makeNode("/root/temp/colgprntinfo/iteminfo/sexage");
  613. model.makeNode("/root/temp/colgprntinfo/iteminfo/orddd");
  614. model.makeNode("/root/temp/colgprntinfo/iteminfo/hopedd");
  615. model.makeNode("/root/temp/colgprntinfo/iteminfo/brthdd");
  616. model.makeNode("/root/temp/colgprntinfo/iteminfo/rrgstno")
  617. model.makeNode("/root/temp/colgprntinfo/itemjudg/judgdrnm")
  618. model.makeNode("/root/temp/colgprntinfo/itemjudg/nexthealexamdd")
  619. var nexthealexamdd = nodeList.item(i).hopedd.text;
  620. nexthealexamdd = nexthealexamdd.toDate().getAddDate(1,"Y").getDateFormat("YYYYMMDD") ;
  621. //alert("pid : " + nodeList.item(i).pid.text);
  622. model.setValue("/root/temp/colgprntinfo/iteminfo/healexamflag", nodeList.item(i).healexamflag.text ); //건진구분
  623. model.setValue("/root/temp/colgprntinfo/iteminfo/pid", nodeList.item(i).pid.text );
  624. model.setValue("/root/temp/colgprntinfo/iteminfo/pnm", nodeList.item(i).hngnm.text );
  625. model.setValue("/root/temp/colgprntinfo/iteminfo/sexage", nodeList.item(i).sexage.text );
  626. model.setValue("/root/temp/colgprntinfo/iteminfo/orddd", nodeList.item(i).orddd.text );
  627. model.setValue("/root/temp/colgprntinfo/iteminfo/hopedd", nodeList.item(i).hopedd.text );
  628. model.setValue("/root/temp/colgprntinfo/iteminfo/brthdd", nodeList.item(i).brthdd.text );
  629. model.setValue("/root/temp/colgprntinfo/iteminfo/rrgstno", nodeList.item(i).rgstno.text );
  630. //model.setValue("/root/temp/colgprntinfo/itemjudg/judgdrnm", nodeList.item(i).judgdrnm.text);
  631. model.setValue("/root/temp/colgprntinfo/itemjudg/nexthealexamdd", nexthealexamdd);
  632. var bDirectPrnt = "true";
  633. if( chk_preview.value == "Y" ){
  634. bDirectPrnt = "false";
  635. }
  636. var vPrntFg = cmb_prntflag.value ;
  637. model.removeNodeset("/root/send/updata/req/item");
  638. if( vPrntFg != "paper" ) {
  639. if(language == "H") {
  640. exeReportPreview("RPAHR00901", "XMLSTR" , "" , "" , true /*출력여부*/ , "" , vPrntFg /*저장타입*/, nodeList.item(i).pid.text + "-" + nodeList.item(i).hngnm.text /*파일명*/ , "", false );
  641. }else {
  642. exeReportPreview("RPAHR00905", "XMLSTR" , "" , "" , true /*출력여부*/ , "" , vPrntFg /*저장타입*/, nodeList.item(i).pid.text + "-" + nodeList.item(i).hngnm.text /*파일명*/ , "", false );
  643. }
  644. } else {
  645. if (bDirectPrnt == "false") { //미리보기
  646. if(language == "H") {
  647. exeReportPreview("RPAHR00901", "XMLSTR", "root/temp/colgprntinfo/itemrslt", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  648. }else {
  649. exeReportPreview("RPAHR00905", "XMLSTR", "root/temp/colgprntinfo/itemrslt", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  650. }
  651. } else {
  652. if(language == "H") {
  653. exeReportPreview("RPAHR00901", "XMLSTR", "root/temp/colgprntinfo/itemrslt", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
  654. }else {
  655. exeReportPreview("RPAHR00905", "XMLSTR", "root/temp/colgprntinfo/itemrslt", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
  656. }
  657. }
  658. }
  659. }
  660. }
  661. }// if(rtn == "7" ){ end
  662. ]]>
  663. </script>
  664. </button>
  665. <button id="button4" class="btn2_letter5" disabled="false" style="left:995px; top:99px; width:75px; height:19px; ">
  666. <caption>데이터검증</caption>
  667. <script type="javascript" ev:event="DOMActivate">
  668. <![CDATA[
  669. /*
  670. fDataChk(grd_judgpatlst.getUpdateData());
  671. model.refresh();
  672. */
  673. model.makeNode("/root/datachk");
  674. model.makeValue("/root/datachk/datalist" , grd_judgpatlst.getUpdateData());
  675. //copyNodeType("/root/datachk/datalist","/root/main/judgpatlst/item","replace");
  676. submit("TRAHB05103",false);
  677. model.refresh();
  678. ]]>
  679. </script>
  680. </button>
  681. <select id="checkbox14" ref="/root/main/tmp/sel" overflow="visible" appearance="full" style="left:25px; top:125px; width:20px; height:20px; border-style:none; ">
  682. <choices>
  683. <item>
  684. <label/>
  685. <value>Y</value>
  686. </item>
  687. </choices>
  688. <script type="javascript" ev:event="xforms-select">
  689. <![CDATA[
  690. for(var i = 1 ; i < grd_judgpatlst.rows ; i++){
  691. model.setValue("/root/main/judgpatlst/item['" + i + "']/sel" , 'Y');
  692. grd_judgpatlst.rowstatus(i) = 2;
  693. }
  694. ]]>
  695. </script>
  696. <script type="javascript" ev:event="xforms-deselect">
  697. <![CDATA[
  698. for(var i = 1 ; i < grd_judgpatlst.rows ; i++){
  699. model.setValue("/root/main/judgpatlst/item['" + i + "']/sel" , 'N');
  700. }
  701. grd_judgpatlst.clearStatus();
  702. ]]>
  703. </script>
  704. </select>
  705. </group>
  706. </xhtml:body>
  707. </xhtml:html>